home *** CD-ROM | disk | FTP | other *** search
/ Freelog 125 / Freelog_MarsAvril2015_No125.iso / Musique / Quod Libet / quodlibet-3.3.0-installer.exe / bin / encodings / mac_latin2.pyc (.txt) < prev    next >
Python Compiled Bytecode  |  2014-12-31  |  5KB  |  179 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyc (Python 2.7)
  3.  
  4. """ Python Character Mapping Codec generated from 'LATIN2.TXT' with gencodec.py.
  5.  
  6. Written by Marc-Andre Lemburg (mal@lemburg.com).
  7.  
  8. (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
  9. (c) Copyright 2000 Guido van Rossum.
  10.  
  11. """
  12. import codecs
  13.  
  14. class Codec(codecs.Codec):
  15.     
  16.     def encode(self, input, errors = 'strict'):
  17.         return codecs.charmap_encode(input, errors, encoding_map)
  18.  
  19.     
  20.     def decode(self, input, errors = 'strict'):
  21.         return codecs.charmap_decode(input, errors, decoding_map)
  22.  
  23.  
  24.  
  25. class IncrementalEncoder(codecs.IncrementalEncoder):
  26.     
  27.     def encode(self, input, final = False):
  28.         return codecs.charmap_encode(input, self.errors, encoding_map)[0]
  29.  
  30.  
  31.  
  32. class IncrementalDecoder(codecs.IncrementalDecoder):
  33.     
  34.     def decode(self, input, final = False):
  35.         return codecs.charmap_decode(input, self.errors, decoding_map)[0]
  36.  
  37.  
  38.  
  39. class StreamWriter(Codec, codecs.StreamWriter):
  40.     pass
  41.  
  42.  
  43. class StreamReader(Codec, codecs.StreamReader):
  44.     pass
  45.  
  46.  
  47. def getregentry():
  48.     return codecs.CodecInfo(name = 'mac-latin2', encode = Codec().encode, decode = Codec().decode, incrementalencoder = IncrementalEncoder, incrementaldecoder = IncrementalDecoder, streamreader = StreamReader, streamwriter = StreamWriter)
  49.  
  50. decoding_map = codecs.make_identity_dict(range(256))
  51. decoding_map.update({
  52.     128: 196,
  53.     129: 256,
  54.     130: 257,
  55.     131: 201,
  56.     132: 260,
  57.     133: 214,
  58.     134: 220,
  59.     135: 225,
  60.     136: 261,
  61.     137: 268,
  62.     138: 228,
  63.     139: 269,
  64.     140: 262,
  65.     141: 263,
  66.     142: 233,
  67.     143: 377,
  68.     144: 378,
  69.     145: 270,
  70.     146: 237,
  71.     147: 271,
  72.     148: 274,
  73.     149: 275,
  74.     150: 278,
  75.     151: 243,
  76.     152: 279,
  77.     153: 244,
  78.     154: 246,
  79.     155: 245,
  80.     156: 250,
  81.     157: 282,
  82.     158: 283,
  83.     159: 252,
  84.     160: 8224,
  85.     161: 176,
  86.     162: 280,
  87.     164: 167,
  88.     165: 8226,
  89.     166: 182,
  90.     167: 223,
  91.     168: 174,
  92.     170: 8482,
  93.     171: 281,
  94.     172: 168,
  95.     173: 8800,
  96.     174: 291,
  97.     175: 302,
  98.     176: 303,
  99.     177: 298,
  100.     178: 8804,
  101.     179: 8805,
  102.     180: 299,
  103.     181: 310,
  104.     182: 8706,
  105.     183: 8721,
  106.     184: 322,
  107.     185: 315,
  108.     186: 316,
  109.     187: 317,
  110.     188: 318,
  111.     189: 313,
  112.     190: 314,
  113.     191: 325,
  114.     192: 326,
  115.     193: 323,
  116.     194: 172,
  117.     195: 8730,
  118.     196: 324,
  119.     197: 327,
  120.     198: 8710,
  121.     199: 171,
  122.     200: 187,
  123.     201: 8230,
  124.     202: 160,
  125.     203: 328,
  126.     204: 336,
  127.     205: 213,
  128.     206: 337,
  129.     207: 332,
  130.     208: 8211,
  131.     209: 8212,
  132.     210: 8220,
  133.     211: 8221,
  134.     212: 8216,
  135.     213: 8217,
  136.     214: 247,
  137.     215: 9674,
  138.     216: 333,
  139.     217: 340,
  140.     218: 341,
  141.     219: 344,
  142.     220: 8249,
  143.     221: 8250,
  144.     222: 345,
  145.     223: 342,
  146.     224: 343,
  147.     225: 352,
  148.     226: 8218,
  149.     227: 8222,
  150.     228: 353,
  151.     229: 346,
  152.     230: 347,
  153.     231: 193,
  154.     232: 356,
  155.     233: 357,
  156.     234: 205,
  157.     235: 381,
  158.     236: 382,
  159.     237: 362,
  160.     238: 211,
  161.     239: 212,
  162.     240: 363,
  163.     241: 366,
  164.     242: 218,
  165.     243: 367,
  166.     244: 368,
  167.     245: 369,
  168.     246: 370,
  169.     247: 371,
  170.     248: 221,
  171.     249: 253,
  172.     250: 311,
  173.     251: 379,
  174.     252: 321,
  175.     253: 380,
  176.     254: 290,
  177.     255: 711 })
  178. encoding_map = codecs.make_encoding_map(decoding_map)
  179.